<template>
    <div id="home">
        <h2>这是主页</h2>
        <h2>{{list}}</h2>
        <button @click="biu()">发射</button>
        <h2>{{msg}}</h2>
    </div>
</template>

<script>
    import Bus from '../evenBus.js'
    export default {
        data () {
            return {
                list:["少女音","大叔音","萝莉音","正太音"],
                msg:''
            }
        },
        methods: {
            biu(){
                //给事件车发射
                Bus.$emit("Home",this.list)
            }  
        },
        mounted () {
            Bus.$on("one",Val =>{
                this.msg = Val;
            })
        }
    }
</script>

<style>
    #home{
        margin-top: 10px;
        border: 2px solid red;
    }
</style>